package br.com.medvagas.comum.entidade;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the vaga_usuario_profissional database table.
 * 
 */
@Embeddable
public class VagaUsuarioProfissionalPK implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(name="id_vaga")
	private int idVaga;

	@Column(name="id_usuario_profissional")
	private int idUsuarioProfissional;

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof VagaUsuarioProfissionalPK)) {
			return false;
		}
		VagaUsuarioProfissionalPK castOther = (VagaUsuarioProfissionalPK) other;
		return (this.idVaga == castOther.idVaga)
				&& (this.idUsuarioProfissional == castOther.idUsuarioProfissional);
	}

	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + this.idVaga;
		hash = hash * prime + this.idUsuarioProfissional;
		return hash;
	}
    
	public int getIdVaga() {
		return this.idVaga;
	}
	public void setIdVaga(int idVaga) {
		this.idVaga = idVaga;
	}
	public int getIdUsuarioProfissional() {
		return this.idUsuarioProfissional;
	}
	public void setIdUsuarioProfissional(int idUsuarioProfissional) {
		this.idUsuarioProfissional = idUsuarioProfissional;
	}

}